Skip to content

ci: pin contents: read on the 3 remaining PR checks#1402

Open
arpitjain099 wants to merge 1 commit into
cncf:mainfrom
arpitjain099:ci/add-permissions
Open

ci: pin contents: read on the 3 remaining PR checks#1402
arpitjain099 wants to merge 1 commit into
cncf:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Adds an explicit permissions: contents: read block to the three PR-time validation workflows still inheriting org defaults:

  • e2e-license-site.yml — Playwright e2e for the License Exceptions site.
  • validate-csv.ymlkrook/csv-lint against project-maintainers.csv.
  • validate-exceptions.ymlajv JSON Schema validation against exceptions.json.

YAML validated locally.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 13, 2026

Deploy Preview for cncf-license-exceptions canceled.

Name Link
🔨 Latest commit 33d4ed5
🔍 Latest deploy log https://app.netlify.com/projects/cncf-license-exceptions/deploys/6a048b3808e69d000828cad6

…ceptions

All three workflows are read-only PR checks (playwright e2e for the
license-exceptions site, CSV format validation, and JSON Schema
validation). No GitHub API writes.

Signed-off-by: arpitjain099 <arpitjain099@gmail.com>
@arpitjain099
Copy link
Copy Markdown
Author

Hi @riaankleinhans, gentle ping on this. PR has been open for 4 days without review. I noticed you've been on the recent-merger side of recent merges in this repo. When you have a moment, would you mind giving it a quick look? No urgency. Happy to address any feedback.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the repository’s PR-time GitHub Actions workflows by explicitly setting least-privilege GITHUB_TOKEN permissions (contents: read) for the remaining validation checks that were previously inheriting organization defaults.

Changes:

  • Add top-level permissions: contents: read to validate-exceptions.yml.
  • Add top-level permissions: contents: read to validate-csv.yml.
  • Add top-level permissions: contents: read to e2e-license-site.yml.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/validate-exceptions.yml Explicitly restrict token permissions for JSON schema + consistency validation workflow.
.github/workflows/validate-csv.yml Explicitly restrict token permissions for CSV lint workflow.
.github/workflows/e2e-license-site.yml Explicitly restrict token permissions for Playwright PR e2e workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants